<?php

namespace app\np\model;
use app\base\model\Base;
use think\Config;
class UsersOptionalStock extends Base
{
    //
    public function getStatusTextAttr($value,$data)
    {
        return 6666;
    }

    public function stock_page($where=[]){

        $result = $this->where($where)
            ->field("s.name,s.attribute,a.id,a.stock_id,s.code")
            ->alias("a")
            ->join("shares s","a.stock_id = s.id","left")

            ->paginate();

        return     $this->trs_pages_join($result);
    }


}
